package com.xx.happychatboot.serve.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

import io.mybatis.provider.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;

/**
 * <p>
 *  用户角色中间表
 * </p>
 *
 * @author xiaoXuan
 * @since 2024-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity.Table("sys_user_role")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Entity.Column(value = "user_role_id", id = true, remark = "主键", updatable = false, insertable = false)
    @Id
    private Long userRoleId;

    /**
     * 用户ID
     */
    @Entity.Column("user_id")
    private Long userId;

    /**
     * 角色ID
     */
    @Entity.Column("role_id")
    private Long roleId;

    /**
     * 创建时间
     */
    @Entity.Column("create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @Entity.Column("update_time")
    private Date updateTime;


}
